//
//  WSGTheWinningView.m
//  oneDollar
//
//  Created by Laki on 16/6/19.
//  Copyright © 2016年 com.Laki.corder. All rights reserved.
//

#import "WSGTheWinningView.h"
#import "WSGTheWinningItem.h"

@interface WSGTheWinningView()
/** 中奖人名称*/
@property (weak, nonatomic) IBOutlet UILabel *nickNameLabel;
/** 奖品名称*/
@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;

@end

@implementation WSGTheWinningView
/*
 * 加载Xib文件
 */
+ (instancetype)loadTheWinningView{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].firstObject;
}

/*
 * 设置数据
 */
- (void)setTheWinningItem:(WSGTheWinningItem *)theWinningItem{
    _theWinningItem = theWinningItem;
    
    // 设置中奖人名称
    self.nickNameLabel.text = theWinningItem.nickName;
    // 设置奖品名称
    self.productNameLabel.text = theWinningItem.productName;
}

@end
